package com.foreknow.demo2;

import java.util.Scanner;

public class ControllDemo2 {
    public static void main(String[] args) {
        Scanner input  = new Scanner(System.in);
        System.out.println("请输入积分");
        int number = input.nextInt();
        double dis;
        if (number < 2000){
            dis = 0.9;
        }else if (number >= 2000 && number < 4000){
            dis = 0.8;
        }else if (number >= 4000 && number < 8000){
            dis = 0.7;
        }else {
            dis = 0.6;
        }
        System.out.println("折扣是" + dis);
    }
}
